package org.sang.exception;

/**
 * 〈一句话描述〉
 * 〈功能详细描述〉
 *
 * @author Naughty
 * @version 2018/4/4
 * @see ConsumeException
 * @since 1.0
 */
public class ConsumeException extends RuntimeException {

    private String code;

    public ConsumeException(String message, String code) {
        super(message);
        this.code = code;
    }
    public ConsumeException(String message) {
        super(message);
    }

    public String getCode() {
        return code;
    }

}
